﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using System.Data.SqlClient;
using ECONTACT.Controller;

namespace ECONTACT
{
    public partial class frmTTTaiKhoan : Form
    {
        TaiKhoanCtrl m_TaiKhoanCtrl = new TaiKhoanCtrl();
        public frmTTTaiKhoan()
        {
            InitializeComponent();
            DataService.OpenConnection();
        }

        private void frmTTTaiKhoan_Load(object sender, EventArgs e)
        {
            m_TaiKhoanCtrl.HienThiComboBox(cmbMaTaiKhoan);
            DataService.OpenConnection();
        }

        private void btnXem_Click(object sender, EventArgs e)
        {
            m_TaiKhoanCtrl.HienThi(dGVTaiKhoan, cmbMaTaiKhoan);
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
